package com.junhong.action;

import javax.annotation.Resource;

import com.junhong.entity.Role;
import com.junhong.service.RoleService;
import com.opensymphony.xwork2.ActionSupport;

public class RoleDeleteAction extends ActionSupport{
	private static final long serialVersionUID = 1L;
	
	private Integer id;
	@Resource
	private RoleService roleService;
	
	public void delete() {
		Role role = new Role(id,null,null);
		roleService.delete(role);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	
	
}
